package day08.synch.thread;

import day08.synch.DirtyReading;
import day08.synch.SyncTest;

/**
 * @Auther: sky
 * @Date: 2019/3/4 22:53
 * @Description:
 */
public class ThreadC extends Thread {

    private DirtyReading dirtyReading;

    public  ThreadC(DirtyReading dirtyReading){
        this.dirtyReading=dirtyReading;
    }

    @Override
    public void run() {
        super.run();
        dirtyReading.setValue("B","BB");
    }

}
